package com.imti.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考试记录表
 * </p>
 *
 * @author min
 * @since 2023-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_record")
public class Record extends Model<Record> {

    private static final long serialVersionUID = 1L;

    /**
     * 考试记录表
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 学员用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 试卷id
     */
    @TableField("paper_id")
    private Integer paperId;

    /**
     * 题目id
     */
    @TableField("question_id")
    private Integer questionId;

    /**
     * 选择答案id
            1.单选直接显示对应答案id
            2.多选答案用逗号分隔
            3.判断题则用0表示错误，1表示正确）
     */
    @TableField("answered_id")
    private String answeredId;

    /**
     * 是否正确0 否 1 是
     */
    @TableField("correct_flag")
    private String correctFlag;



}
